package com.xwj.dao;

import com.xwj.dto.RegisterUserDto;
import com.xwj.entity.PassWordEntity;
import com.xwj.entity.RaRegisterUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RaRegisterUserDao {

    List<RaRegisterUser> findAllUser();

    List<RaRegisterUser> findUserByProperty(RegisterUserDto registerUserDto);

    RaRegisterUser findUserByMail(String mail);

    RaRegisterUser findUserByPhone(String phone);

    RaRegisterUser findUserById(String id);

    PassWordEntity getUserPassWord(String id);

    int updatePassword(PassWordEntity passWordEntity);

    int addOneRegisterUser(RaRegisterUser raRegisterUser);

    int updateOtherProperty(RaRegisterUser raRegisterUser);

    int deleteByIds(List<String> list);
}
